package com.thoughtworks.studio.tools.cardkit.gui.action;

import java.awt.event.ActionEvent;

import org.jhotdraw.app.Application;
import org.jhotdraw.app.Project;
import org.jhotdraw.app.action.AbstractProjectAction;
import org.jhotdraw.util.Methods;
import org.jhotdraw.util.ResourceBundleUtil;

import com.thoughtworks.studio.tools.cardkit.gui.FindDialog;

public class FindAction extends AbstractProjectAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1793043957903960246L;
	public final static String ID = "find";
	private Application app;

	/** Creates a new instance. */
	public FindAction(Application app) {
		super(app);
		ResourceBundleUtil labels = ResourceBundleUtil
				.getLAFBundle("org.jhotdraw.app.Labels");
		labels.configureAction(this, ID);
	}

	public void actionPerformed(ActionEvent evt) {

		Project project = getCurrentProject();
		try {
			Methods.invoke(project,"findCardByNumber");
		} catch (NoSuchMethodException ex) {
			ex.printStackTrace();
		}
	}

}
